package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;
import java.util.List;

public class UnsubscribeButtonText implements Sequenceable, Serializable {

    @SerializedName("runs")
    private List<RunsItem> runs;

    public static final Sequenceable.Producer<UnsubscribeButtonText> CREATOR = new Producer<UnsubscribeButtonText>() {
        @Override
        public UnsubscribeButtonText createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            UnsubscribeButtonText unsubscribeButtonText = new UnsubscribeButtonText();
            unsubscribeButtonText.unmarshalling(parcel);
            return unsubscribeButtonText;
        }
    };
    
    
    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeList(this.runs);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.runs = parcel.readSequenceableList(RunsItem.class);
        return true;
    }

    @Override
    public String toString() {
        return "UnsubscribeButtonText{" +
                "runs=" + runs +
                '}';
    }

    public List<RunsItem> getRuns() {
        return runs;
    }

    public void setRuns(List<RunsItem> runs) {
        this.runs = runs;
    }
}
